//
//  DataStorage.swift
//  ADKit
//
//  Created by Adoma on 2020/10/25.
//

import SwiftyJSON

public protocol DataStorageType {
    
    typealias Key = String
    
    // MARK: JSON
    func set(json: JSON?, for key: Key)
    func json(for key: Key) -> JSON?
    
    // MARK: String
    func set(string: String?, for key: Key)
    func string(for key: Key) -> String?
    
    // MARK: Data
    func set(data: Data?, for key: Key)
    func data(for key: Key) -> Data?
    
    func remove(key: Key)
    func clean()
    
}
